package com.sc.VenusQueryBeta.contract.account.cunka;

import com.hengjun.kingstar.sdk.base.BasePresenter;
import com.hengjun.kingstar.sdk.base.IBaseActivity;
import com.hengjun.kingstar.sdk.base.IBaseModel;
import com.sc.VenusQueryBeta.model.bean.account.AccountList;
import com.sc.VenusQueryBeta.model.bean.account.AllRoomListBean;
import com.sc.VenusQueryBeta.model.bean.account.CurrencyListBean;

import io.reactivex.Observable;

/**
 * Created by SC-02 on 2018/9/19.
 *  存卡明细Contract(契约)接口
 */

public interface CunKaContract  {
    abstract class CunKaPresenter extends BasePresenter<ICunKaModel,ICunKaView>{
        //查询厅(根据账房那边排序)
//        public abstract void queryAllRoomList(String serverAddress, String projectName, int serverPort);

        //查询币种(根据账房那边排序)
        public abstract void queryAllCurrencyList(String serverAddress, String projectName, int serverPort);

        //查询子户口
//        public abstract void queryClientReserved02(String serverAddress, String projectName, int serverPort,int clientindex,int roomid, String roomyear,
//                                                   String roommonth,String recognitionValue,String depositType);

        //查询子户口
        public abstract void queryClientReserved02(String serverAddress, String projectName, int serverPort,int clientindex, String roomyear,
                                                   String roommonth,String recognitionValue,String depositType,String currencynameCN);
    }
    interface ICunKaModel extends IBaseModel{
        //查询币种(根据账房那边排序)
//        Observable<AllRoomListBean> queryAllRoomList(String serverAddress, String projectName, int serverPort);
        Observable<CurrencyListBean> queryAllCurrencyList(String serverAddress, String projectName, int serverPort);

        //查询子户口
//        Observable<AccountList> queryZiHuList(String serverAddress, String projectName, int serverPort, int clientindex, int roomid, String roomyear,
//                                              String roommonth, String recognitionValue, String depositType);
        //查询子户口
        Observable<AccountList> queryZiHuList(String serverAddress, String projectName, int serverPort, int clientindex, String roomyear,
                                              String roommonth, String recognitionValue, String depositType, String currencynameCN);
    }
    interface ICunKaView extends IBaseActivity{
        void showNetworkError(Throwable throwable);
        //查币种(根据账房那边排序)
        void showqueryAllCurrencyList(CurrencyListBean currencyListBean);
        //子戶口
        void showZiHuKouList(AccountList accountListBean);

        void showAllCurrencyNetworkError(Throwable throwable);
    }
}
